<template>
  <div class="top-list">
    <MusicList :songs="songs" :title="title" :pic="pic" rank></MusicList>
  </div>
</template>

<script>
import createDetailComponent from '@/js/create-detail-component'
import { TOP_KEY } from '@/js/constant'
import { getTopDetail } from '@/service/top-list'

export default createDetailComponent('TopDetail', TOP_KEY, getTopDetail)

</script>
<style lang="scss" scoped>
.top-list {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: $color-background;
}
</style>
